// pages/index/banner/banner.js

Component({

  properties: {
    bannerList: {
      type: Array,
      value: []
    }
  },

  data: {
    activeIndex: 0 
  },

  methods: {
    // 获取被激活的轮播图索引
    getSwiperIndex(event) {
      const { current } = event.detail
      this.setData({
        activeIndex: current
      })
    }
  }
})
